package com.zzxy.spring.aspect;

import org.aopalliance.lang.Joinpoint;

public class MyAspectJ {
    public void before(Joinpoint joinpoint){
        System.out.println("method name : " + joinpoint.getSignature().getName());
        System.out.println("before ...");
    }

    public void after(JoinPoint joinPoint) {
        System.out.println("after ....");
    }

    public object myAround(JoinPoint joinPoint) {
        System.out.println("before around ....");
        Object obj = pjp.proceed();
        System.out.println("after around ....");
        return obj;
    }

    public object myAround(JoinPoint joinPoint,object obj) {
        System.out.pribtln("after returning ..."+ obj);
    }

    public object myThrowable(JoinPoint joinPoint,Throwable e) {
        System.out.pribtln("after returning ..."+ e);
    }
}
